 <?php $c = 1;
    
    foreach($products as $product): ?>
    
    <?php if ($c==3){ ?>
    
    
    
    <?php } ?>
<span id="other-product-wrapper" class="corner">
	<span id="other-product-pic-wrapper">
    <span class="center_vertical">
                    <a href="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('account_product_show',$product); else : echo url_for('product_show',$product); endif; ?>"><img src="/uploads/products/list/<?php echo $product->getPhoto1(); ?>"/></a>
    </span>
    </span>
    <h1><?php echo $product->getName(); ?></h1>
    <h2>$<?php echo $product->getDiscountedPrice(); ?> <br /><?php echo number_format($product->getDiscount(),0) ?>% OFF</h2>
</span>
<?php $c++; 
   
    endforeach; ?>
 
    
  <?php 
  if(isset($acountt)){ 
      
     $account = Doctrine_Core::getTable('Account')->findOneByIdAccount(array($acountt));
       
      ?>
  
      <a href="<?php echo url_for('accounts/productsList?companyNameUrl='.$account->getcompanyNameUrl() ) ?>" class="button-more">ALL PRODUCTS</a>
      
  
  <?php }else{ ?>
  <a href="<?php echo url_for('products/index') ?>" class="button-more">ALL PRODUCTS</a>
  <?php } 
  if ($sf_params->get('companyNameUrl')) :

    $account = Doctrine_Core::getTable('Account')->findOneByCompanyNameUrl($sf_params->get('companyNameUrl')); ?>

    <div id="bannner">
    	<span class="center_vertical">
    <img src="/uploads/logos/<?php echo $account->getCompanyLogo(); ?>"/>
    	</span>
    </div>
  
  <?php endif;?>
    
    <?php if (!$sf_user->isAuthenticated() ) : ?>
    
    
    
    <?php endif; ?>
    
